package com.fruit.service.sms;

import java.util.Map;

import com.fruit.pojo.sms.SmsCodeValidate;

/** 短信接口类
 * 修改时间：2016.07.05
 */
public interface SmsCodeManager {
	
	/**
	 * 获取短信配置信息
	 * @param code
	 * @return
	 * @author admin
	 * @version 2017
	 */
	public Map<String, Object> sendSmsCode(SmsCodeValidate sv);
	
	/**
	 * 校验短信验证码
	 * @return
	 * @author admin
	 * @version 2017
	 */
	public String getValidateCode(String phone, String code, String type);
	
	/**
	 * 通知类短信
	 * @return
	 * @author admin
	 * @version 2017
	 */
	public Map<String, Object> sendNoticeSmsToDB(String type,String phone);
	
	public Map<String, Object> sendBonusToDB(String type,Integer userId,String params);

	public int upudateIsSue(SmsCodeValidate validate);

}
